package com.aishua.fire.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.aishua.fire.common.anno.PermMapping;
import com.aishua.fire.entity.schedule.SchedulePlanInfo;
import com.aishua.fire.service.ScheduleService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Api(value = "行程安排相关",tags = {"行程安排接口"})
@RestController
public class ScheduleController {
	
	@Autowired
	private ScheduleService scheduleService;
	

	@PermMapping(noValidate=true)
	@ApiOperation(value="添加行程计划接口")
	@PostMapping(value="/addSchedulePlan")
	private void addSchedulePlan(SchedulePlanInfo schedulePlanInfo) {
		scheduleService.addSchedulePlan(schedulePlanInfo);
	}
}
